package com.yeyks.common.param;

import com.yeyks.common.annotation.StrNotEmpty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author fuchangshuai
 * @date 2019/07/03 14:13
 */
@Data
public class OrderListParam implements Serializable {
    private static final long serialVersionUID = 9027366087069007295L;

    @ApiModelProperty(value = "订单状态(逗号隔开，全部不传，1待入住，2待入住，3已完成，4支付失败，5待退款，6已退款，7入住中，8已取消，9已评论，10待确认)")
    private String status;

    @ApiModelProperty(value = "下单时间 格式 yyyy-MM-dd")
    private String orderDate;

    @ApiModelProperty(value = "订单号")
    private String orderNo;

    @ApiModelProperty(value = "酒店名称")
    private String hotelName;

    @ApiModelProperty(value = "入住人用户")
    private String name;

    @ApiModelProperty(value = "下单用户手机号")
    private String userPhone;

    @ApiModelProperty(value = "入住时间 格式 yyyy-MM-dd")
    private String checkIn;

    @ApiModelProperty(value = "离店时间 格式 yyyy-MM-dd")
    private String checkOut;

    @ApiModelProperty(value = "区域")
    private String area;

    @ApiModelProperty(value = "订单类型逗号隔开，0 c2b，1vip，2b2c，3miniVip")
    @StrNotEmpty(message = "订单类型不能为空")
    private String vipFlag;

    @ApiModelProperty(value = "当前页(默认1)")
    private Integer pageNum = 1;

    @ApiModelProperty(value = "页码(默认10)")
    private Integer pageSize = 10;

    @ApiModelProperty(value = "来源，yyks或cn")
    @StrNotEmpty(message = "订单来源必传")
    private String sourceType;

}
